#ifndef __BMI088_H
#define __BMI088_H


#include "bsp_spi.h"
#include "app_include.h"
#include "filter.h"


void BMI008_AcceleraterCS(uint8_t enable);
void BMI008_GyroCS(uint8_t enable);
uint8_t BMI008_Write(uint8_t *data,uint16_t length);
uint8_t BMI008_Read(uint8_t *data,uint16_t length);
void BMI008_Delay1ms(uint16_t ms);


void BMI008_AcceleraterWriteReg(uint8_t reg,uint8_t data);
uint8_t BMI008_AcceleraterReadReg(uint8_t reg);
void BMI008_GyroWriteReg(uint8_t reg,uint8_t data);
uint8_t BMI008_GyroReadReg(uint8_t reg);
void BMI008_Init(void);
void BMI008_GetData(float dT);
void BMI008_GetOffset(uint16_t cnt);

#endif


